# _*_coding:utf-8_*_
# Author   :luoyuan 
# Date     :2019/1/5 19:41  

class Room:
    tag=1
    def __init__(self,name,owner,width,length,heigh):
        self.name=name
        self.owner=owner
        self.width=width
        self.length=length
        self.heigh=heigh
    # 相当于属性
    @property
    def calu_area(self):
        print('%s住的%s面积%s'%(self.owner,self.name,self.width*self.length))
        return self.length*self.width

    # 类方法，和类绑定
    @classmethod
    def tell_infe(cls,x):
        print('->',cls.tag,x)

    # 静态方法，不和类绑定，不和实例绑定，叫做类的工具包
    @staticmethod
    def wash_cloth(a):
        print("%s正在洗衣服"%(a))
Room.wash_cloth("yangji")
r1=Room('客厅','luoy',100,100,100)
r1.wash_cloth("yangji")